package com.base.controller;


import com.base.entity.FeeRecord;
import com.base.service.IFeeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 作者
 * @since 2024-11-30
 */
@Controller
@RequestMapping("/fee-record")
public class FeeRecordController {


    @Autowired
    private IFeeRecordService feeRecordService;

    @GetMapping("/list")
    public String  list(Model model){
        List<FeeRecord> feeRecords = feeRecordService.list();
        model.addAttribute("feeRecords",feeRecords);
        return "fee_record";
    }

}
